<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="onein" uri="http://www.onein.cn/jsp/taglib"%>
<div class="searchWrap">
    <script language="javascript">
    function contentsearch(searchword,currpage){
    	if(searchword == null){
    		searchword = document.getElementById("searchword").value;
    	} 
    	if(null == currpage){
    		currpage = 1;
    	}
    	searchword = encodeURI(searchword);
    	window.location = '<onein:url value="/learn/search.jhtml?currPage="/>' + currpage +'&searchword='+ searchword;
    }
    
    </script>
    <img src='<onein:url value="/images/icon_search.jpg"/>' class="serachToolsIcon"/>
    <span class="searchWTitle">育儿百科搜索:</span>
    <input id="searchword" name="searchword" type="text" value='<c:out value="${searchword}"/>'/>
    <a href="#" class="botton1 searchToolsBt" onclick="javascript:contentsearch(null,null);">
       <span>搜索</span>
    </a>
    <span class="searchHotWord">热门关键字：
    <c:forEach var="tag" items="${REQUEST_KEY_HOT_TAGS}" begin="0" end="3" step="1"><a class="a-hot-tags" href="#" onclick="javascsript:contentsearch(this.innerHTML);">${tag.tagName }</a>&nbsp;</c:forEach>
    </span>
</div>
<br/>